body {
  width: 100vw;
  height: 100vh;
  background: linear-gradient(skyblue, white);
}

/* 公路平铺图片 */
.highway {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 82px;
  background: url(../images/Floor.png);
}

/* 跑步数据 */
.data {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 28px;
  font-weight: 700;
}

.data .life {
  position: absolute;
  top: 0;
  right: 50px;
}

.red {
  color: red;
}

/* 遮罩层 */
.masking {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background-color: rgba(0, 0, 0, 0.5);
}

.masking div h1 {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.masking button {
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 50%;
  width: 130px;
  height: 50px;
  background-color: #05a4e4;
  color: white;
  border: 0;
  border-radius: 30px;
  opacity: .5;
  transition: .3s;
}

.masking button:hover {
  opacity: 1;
}

/* 英雄 */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  /* left: -90px; */
  left: 400px;
  width: 90px;
  height: 90px;
  bottom: 65px;
  z-index: 3;
  overflow: hidden;
  transform: rotateY(180deg);
  /* transform: rotate(180deg); */
  background: url(../images/Character.gif);
  background-position: center;
  background-size: 170%;
  /* transition: left 4s ease-in; */
  transition: all .2s ease-in;
}

body .hero_w {
  transform: translateY(-80px) rotateY(180deg);
}

body .hero_s {
  transform: translateY(30px) rotateZ(-90deg) rotateY(180deg);
}

/* 目标 */
.target {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 10%;
  border: 0;
  border-radius: 10px;
  background-color: skyblue;
  text-align: center;
  padding: 20px;
  color: azure;
  opacity: 0;
  transition: all .3s;
  z-index: 2;
}

.target2 {
  top: 20%;
  opacity: 1;
}

/* 障碍物 */
.barrier {
  position: fixed;
  bottom: 55px;
  width: 100%;
  height: 140px;
  z-index: 2;
}

.barrier1 {
  bottom: 60px
}

.barrier2 {
  bottom: 0px
}

.barrier img {
  position: absolute;
  left: 700px;
  width: 70px;
}

/* 云朵 */
.sky div {
  position: absolute;
  width: 160px;
  height: 155px;
  background: url(../images/cloud.png);
  background-size: 100%;
  right: 0px;
  animation: fun 2s linear forwards;
}

@keyframes fun {
  100% {
    right: 110vw;
  }
}